package p.ithorns.tools.translator.annotation.field;

import org.springframework.core.annotation.AliasFor;
import p.ithorns.tools.translator.annotation.IDict;
import p.ithorns.tools.translator.annotation.Translatable;

import java.lang.annotation.*;

/**
 * @author ithorns
 */
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Target({ElementType.FIELD})
@Translatable
@Inherited
public @interface EnumField {

    @AliasFor(annotation = Translatable.class)
    String from() default "";

    Class<? extends IDict<?>> type();

}
